AppView = Backbone.View.extend({
	el: $("body"),
	friends: Friends,
	initialize: function(){
		friends = new Friends(null, {view: this});
		friends.bind("add", this.render);
	},
	events:{
		"click #add-friend": "show",
		"click #view-tweet": "showTweet"
	},
	show: function(){
		var fname = prompt("Enter your name: ");
		var fage = prompt("Enter your age: ");
		var friend_model = new Friend();
		friend_model.set({name: fname, age: fage});
		friends.add(friend_model);
	},
	showTweet: function(){
		var fname = prompt("Enter your username: ");
		
	},
	addFriendLi: function(model){
		$("#friend-list").append("<li><a href='#view/"+(friends.length-1)+"'>Name: "+model.get("name")+"</a></li>");
	},
	render: function(){
		$("#info").html(friends.at(friends.length-1).get("name"));
	}
});